home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
comdore
/
64utils
/
turbo.sda
/
TURBO BOOTMAKER
(
.txt
)
next >
Wrap
Commodore BASIC
|
1988-10-21
|
2KB
|
50 lines
100 PRINT"[147]"CHR$(8)CHR$(14):PRINT TAB(10)"** [212]URBO[194]OOTMAKER **":Z$=CHR$(0)
110 FOR AD=822 TO 915:READ BY:CK=CK+BY:POKE AD,BY:NEXT:IF CK=11597 THEN 130
120 PRINT"[197]RROR IN [196][193][212][193] STATEMENTS!":STOP
130 PRINT" [201]NSERT A DISK CONTAINING [212]URBO[196]ISK."
140 PRINT TAB(7)"[208]RESS [210][197][212][213][210][206] [146] WHEN READY."
150 GET K$:IF K$<>CHR$(13) THEN 150
160 CLOSE 15:OPEN 15,8,15,"I0":GOSUB 500:IF E THEN 600
170 T$="":PRINT"[206]AME OF [212]URBO[196]ISK FILE:":INPUT T$:IF T$="" THEN 170
180 OPEN 1,8,8,"0:"+T$+",P,R":GET#1,A$,B$:GOSUB 500:IF E THEN 600
190 TL=ASC(A$+Z$):TH=ASC(B$+Z$):POKE 834,TL:POKE 836,TH:POKE 861,TL:POKE 862,TH
200 TS=49152:TE=TS:PRINT TAB(7)"[210]EADING: "T$
210 FOR SS=0 TO 1:GET#1,A$:SS=ST:POKE TE,ASC(A$+Z$):TE=TE+1:NEXT
220 CLOSE 1:IF ST<>64 THEN PRINT"[197]RROR READING [212]URBO[196]ISK FILE.":STOP
230 PRINT" [201]NSERT THE DISK ON WHICH YOU WISH TO":PRINT" CREATE THE BOOT FILE."
240 PRINT TAB(7)"[208]RESS [210][197][212][213][210][206] [146] WHEN READY."
250 GET K$:IF K$<>CHR$(13) THEN 250
260 PRINT#15,"I0":GOSUB500:IF E THEN600
270 P$="":PRINT"[206]AME OF PROGRAM TO [212]URBO[194]OOT:":INPUT P$:IF P$="" THEN 290
280 P=LEN(P$):POKE 874,P:FOR I=1 TO P:POKE 899+I,ASC(MID$(P$,I)):NEXT
290 OPEN 1,8,8,"0:"+P$+",P,R":GOSUB 500:CLOSE 1:IF E=0 THEN 310
300 IF E=62 THEN PRINT" [210]EMEMBER TO PUT A COPY OF "P$:PRINT" ON THIS DISK."
310 PRINTTAB(5)"[201]S THE PROGRAM [194][193][211][201][195] OR [205][204]?":PRINTTAB(9)"[208]RESS [194] [146] OR [205] [146]"
320 GET K$:IF K$="B" THEN 380
330 IF K$<>"M" THEN 320
340 A$="":INPUT"[211]TARTING ADDRESS";A$:IF A$="" THEN 340
350 D=0:IF LEFT$(A$,1)<>"$" THEN D=VAL(A$):GOTO 370
360 FOR I=2 TO LEN(A$):A=(ASC(MID$(A$,I))AND 127)-48:D=(16*D)+A+(7*(A>9)):NEXT
370 DH=INT(D/256):DL=D-(256*DH):POKE 891,76:POKE 892,DL:POKE 893,DH
380 B$="":PRINT"[206]AME FOR [212]URBO[194]OOTING FILE:":INPUT B$:IF B$="" THEN 380
390 OPEN 1,8,8,"0:"+B$+",P,W":GOSUB 500:IF E THEN 600
400 PRINT TAB(7)"[215]RITING: "B$
410 PRINT#1,CHR$(38);CHR$(3);CHR$(54);CHR$(3);
420 FOR AD=808 TO 915:PRINT#1,CHR$(PEEK(AD));:NEXT
430 FOR AD=TS TO TE:PRINT#1,CHR$(PEEK(AD));:NEXT
440 CLOSE 1:GOSUB 500:IF E THEN 600
450 CLOSE 15:PRINT""B$" WILL NOW TURBOBOOT "P$:END
500 INPUT#15,E,E$:RETURN
600 CLOSE 1:PRINT"";
610 IF E=62 THEN PRINT"[206]O FILE WITH THAT NAME ON THIS DISK.":GOTO 170
620 IF E=63 THEN PRINT"[212]HAT NAME IS ALREADY USED ON THIS DISK.":GOTO 380
630 CLOSE15:PRINT"[196]ISK [197]RROR:";E;E$:END
822 DATA 32,138,255,169,148,160,3,133,251,132
832 DATA 252,169,0,160,192,133,253,132,254,160
842 DATA 0,177,251,145,253,200,208,249,230,252
852 DATA 230,254,165,254,201,196,208,239,32,0
862 DATA 192,32,68,229,166,186,160,1,32,186
872 DATA 255,169,1,162,132,160,3,32,189,255
882 DATA 169,0,32,213,255,134,45,132,46,32
892 DATA 94,166,32,142,166,76,174,167,42,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0